import request from '@/utils/request'

//  查询艺人详情
export function getArtistInfoApi(id) {
    return request.get('/api/artist/info')
}
//  更新用户信息
export function updateArtistInfoApi(data) {
    return request.put('/api/artist', data)
}
//  查询用户分页
export function getArtistPageApi(data) {
    return request.req({
        method: 'get',
        url: '/api/artist/page',
        params: data
    })
}
//  删除明星信息
export function deleteArtistApi(id) {
    return request.delete('/api/artist/' + id)
}
//  获取明星数量
export function getArtistCountApi(data) {
    return request.get('/api/artist/count')
}
//  导出明星列表
export function exportArtistListApi(data) {
    return request.get('/api/artist/export')
}
//  新增明星
export function addArtistApi(data) {
    return request.post('/api/artist', data)
}



